import { reactive } from 'vue'
interface UserT {
  accountName: string,
  agentPayAmount: number,
  agentPercentageAmount: number,
  code: string,
  distributionPayAmount: number,
  distributionPercentageAmount: number,
  id: string,
  name: string
}
const appStore = reactive<{
  userInfo: UserT
}>({
  userInfo: {} as UserT
})

function useAppStore() {
  function setUserInfo(data: UserT) {
    appStore.userInfo = data
  }
  return {
    appStore,
    setUserInfo
  }
}
export {
  useAppStore
}